/*
* @Author: dengjiayao
* @Date:   2017-07-05 17:58:58
* @Last Modified by:   dengjiayao
* @Last Modified time: 2017-07-05 18:01:47
*/
import moment from 'moment'

export default (Vue) => {
  Vue.filter('timeToString', (timestamp) => {
    let time = new Date(timestamp)
    return moment(time).format('YYYY-MM-DD HH:mm:ss')
  })
}
